<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link rel="shortcut icon" href="img/109ico4.ico" type="image/ico" />
	<link rel="stylesheet" href="css/styles.css" type="text/css" />

	<title>Користувачі - Інформаційна служба 109</title>
	<style>a.m-users {font-weight:bold;} </style>
</head>
<body>
<jsp:include page="includes/header.jsp"></jsp:include>
<h3>Керування користувачами</h3>

<form method="get" action="users">
<input type="hidden" name="action" value="list"/>
<input type="text" name="filter" placeholder="Усі" value = "${param.filter}" />
<input type="submit" value="Вибрати"/>
</form>  

<table>
<c:forEach var="user" items="${users}">
	<tr>
    <td class="user_id">${user.id}</td>
    <td class="user_name"><a href="users?action=edit&userid=${user.id}">${user.username}</td>
    <td class="user_login">${user.login}</td>
    </tr>
</c:forEach>
</table>
</body>
</html>